public class psvm {
    public static void main(String[] args) {
        long male = 33;
        long female = 67;
        long total = 101;

//        System.out.println(male*1D / total);
        double maleRatio = Math.round(male * 1000D / total) / 10D;
        System.out.println(maleRatio);

        Double femaleRatio = Math.round((100D - maleRatio) * 10D)/10D;
//        double femaleRatio = 100D - maleRatio;
        System.out.println(femaleRatio);
    }
}
